package com.weaver.drools.business.execution.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weaver.drools.business.execution.service.IDCaseoringintype430Service;
import com.weaver.drools.common.dao.DCaseoringintype430Dao;
import com.weaver.drools.common.entity.DCaseoringintype430;
@Service
public class DCaseoringintype430ServiceImpl implements IDCaseoringintype430Service {
	
	@Autowired
	private DCaseoringintype430Dao DCaseoringintype430Dao;
	@Override
	public DCaseoringintype430 findById(Long caseoringintypeid) {
		// TODO Auto-generated method stub
		return DCaseoringintype430Dao.findDCaseoringintype430ByCaseoringintypeid(caseoringintypeid);
	}

	@Override
	public void saveDCaseoringintype430(DCaseoringintype430 caseoringintype430) {
		DCaseoringintype430Dao.saveOrUpdate(caseoringintype430);

	}

	@Override
	public void updateDCaseoringintype430(DCaseoringintype430 caseoringintype430) {
		DCaseoringintype430Dao.saveOrUpdate(caseoringintype430);

	}

	@Override
	public void deleteById(Long caseoringintypeid) {
		DCaseoringintype430Dao.deleteById(caseoringintypeid);
	}

	@Override
	public List<DCaseoringintype430> findAll() {
		List<DCaseoringintype430> list = DCaseoringintype430Dao.findAll();
		return list;
	}
}
